home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 41
/
Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso
/
-seriously_amiga-
/
programming
/
other
/
gtlayout
/
source
/
ltp_atol.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-04-19
|
459b
|
34 lines
/*
** GadTools layout toolkit
**
** Copyright © 1993-1998 by Olaf `Olsen' Barthel
** Freely distributable.
**
** :ts=4
*/
#ifndef _GTLAYOUT_GLOBAL_H
#include "gtlayout_global.h"
#endif
#include "Assert.h"
ULONG
LTP_Atol(STRPTR String)
{
ULONG Value = 0;
while(*String == ' ' || *String == '\t')
String++;
while(*String)
{
if(*String >= '0' && *String <= '9')
Value = (Value * 10) + ((*String++) - '0');
else
break;
}
return(Value);
}